{{define "chapter/index.html" }}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>这里是index.html,模板函数</h1>
{{print "alex"}} <br>
{{printf "%s" "Jackson"}} <br>
{{printf "name:%s,age:%d" "wusir" 41}}<br>
{{println "angel"}} <br>
<!---->
{{"jack" | printf "%s"}} <br>
{{"hallen" | len}} <br>

{{printf "name:%s, addr:%s"  "bob" (printf "%s-%s" "北京市" "西城区")}} <br>

{{and .name .age}}<br>
{{and .age .name}} <br>
{{and .addr .nasdme}} <br>
{{or .age .name}} <br>
{{or .fdf .addr}} <br>
{{or .ad .zxc .name}} <br>

{{index .slice_data 1}}<br>
{{index .slice_data 3}}<br>

{{index .map_test "name"}}<br>
{{index .map_test "age"}}<br>
{{index "jackson" 0}} <br>

{{"Jackson" | len}}<br>
{{len "alex" }} <br>

{{not .name}} <br>

{{not .asdf}}<br>
{{ urlquery "http://www.baidu.com/"}} <br>

{{eq 169  651}}<br>
{{ne 213 453}} <br>
{{lt 44 2}} <br>
{{le 3 234}} <br>
{{gt 34 23}} <br>
{{ge 35 46}} <br>

{{eq 19 16 31 51 19}} <br>

{{.now_time}}<br>
{{.now_time.Format "2006-01-01 13:43:42"}}<br>

{{"<a href=’https://www.baidu.com/‘>百度</a>"}}<br>
{{html "<a href=’https://www.baidu.com/‘>百度</a>"}}<br>
{{js "<a href=’https://www.baidu.com/‘>百度</a>"}}<br>

</body>
</html>
{{end}}